package top.codedance.iotp.loadblance.common;

import top.codedance.iotp.loadblance.algorithm.*;

public enum AlgorithmType {
    AUTO(Auto.class), CYCLE(Cycle.class), RANDOM(Random.class), WEIGHT(Weight.class);

    private Class<? extends Adapter> adapter;
    AlgorithmType(Class<? extends Adapter> adapter){
        this.adapter = adapter;
    }

    public Class<? extends Adapter> getAlgorithm() {
        return adapter;
    }
}
